#include <linux/init.h>
#include <linux/module.h>
#include <linux/platform_device.h>

MODULE_LICENSE("GPL");

int led_driver_probe(struct platform_device * pdev)
{
    printk("enter %s\n", __func__);
    return 0;
}
int led_driver_remove(struct platform_device * pdev)
{
    printk("enter %s\n", __func__);
    return 0;
}

struct platform_driver led_drv = 
{
    .driver = 
    {
        .name = "myLedsDevice"
    }, 
    .probe = led_driver_probe,
    .remove = led_driver_remove,
};

static int __init led_drv_init(void)
{
    platform_driver_register(&led_drv);
    return 0;
}

static void __exit led_drv_exit(void)
{
    platform_driver_unregister(&led_drv);
}

module_init(led_drv_init);
module_exit(led_drv_exit);